import { NewsSaveList } from '../action/actionTypes';

const initialState = {
  list: [],
};

const newsReducer = (state = initialState, { type, payload }) => {
  switch (type) {
    case NewsSaveList:
      return { ...state, list: payload };
    default:
      return state;
  }
};

export default newsReducer;
